package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.Students4Mapper;
import com.ruoyi.system.domain.Students4;
import com.ruoyi.system.service.IStudents4Service;

/**
 * 学生表4Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-14
 */
@Service
public class Students4ServiceImpl implements IStudents4Service 
{
    @Autowired
    private Students4Mapper students4Mapper;

    /**
     * 查询学生表4
     * 
     * @param studentId 学生表4主键
     * @return 学生表4
     */
    @Override
    public Students4 selectStudents4ByStudentId(Long studentId)
    {
        return students4Mapper.selectStudents4ByStudentId(studentId);
    }

    /**
     * 查询学生表4列表
     * 
     * @param students4 学生表4
     * @return 学生表4
     */
    @Override
    public List<Students4> selectStudents4List(Students4 students4)
    {
        return students4Mapper.selectStudents4List(students4);
    }

    /**
     * 新增学生表4
     * 
     * @param students4 学生表4
     * @return 结果
     */
    @Override
    public int insertStudents4(Students4 students4)
    {
        return students4Mapper.insertStudents4(students4);
    }

    /**
     * 修改学生表4
     * 
     * @param students4 学生表4
     * @return 结果
     */
    @Override
    public int updateStudents4(Students4 students4)
    {
        return students4Mapper.updateStudents4(students4);
    }

    /**
     * 批量删除学生表4
     * 
     * @param studentIds 需要删除的学生表4主键
     * @return 结果
     */
    @Override
    public int deleteStudents4ByStudentIds(Long[] studentIds)
    {
        return students4Mapper.deleteStudents4ByStudentIds(studentIds);
    }

    /**
     * 删除学生表4信息
     * 
     * @param studentId 学生表4主键
     * @return 结果
     */
    @Override
    public int deleteStudents4ByStudentId(Long studentId)
    {
        return students4Mapper.deleteStudents4ByStudentId(studentId);
    }
}
